<?php
/**
 * Created by PhpStorm.
 * Time: 下午5:58
 */?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<head>
    <title>细菌质谱分类列表</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <script language="JavaScript"> var base_url = '<?php echo base_url()?>'; </script>

    <link href="<?php echo base_url()?>css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo base_url()?>css/bootstrap.min.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/jquery.js"></script>

    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/bootstrap.min.js"></script>
    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/bootstrap.js"></script>

</head>
<script>
    function validateForm(){
        if (window.confirm("是否确认删除")) {
            return true;
        }
        return false;
    }
</script>
<div class="container navigation">

    <div class="row">
        <div class="col-md-8">
            <h1>细菌质谱分类鉴定数据库</h1>
        </div>
    </div>
</div>
<body style="position: relative; background-color: white" >
<div class="container navigation">
    <div class="row">
        <div class="col-md-7">
        <ul class="nav nav-pills">
            <li class="active"><a href="<?php echo site_url()?>">首页</a></li>
            <li><a href="<?php echo site_url('c_front_bacteria/')?>">细菌质谱</a></li>
            <li><a href="<?php echo site_url('c_specimen_admin/')?>">细菌样本</a></li>
        </ul>
            </div>
        <div class="col-xs-3">
            <form action="<?php echo site_url('c_front_bacteria/getPost/')?>" target="_blank" method="post">
                <input class="placeholder" id="s" name="keywords" value=""  autocomplete="off">
        </div>
        <div class="col-xs-1">
            <input style="width: 80px;height: 30px;background: black ;color: white" class="btn btn-default" type=submit name="select" value="搜索"/>
            </form>
        </div>

<!--        <a href='--><?php //echo site_url('c_front/')?><!--' style="text-decoration:none" alt='退出' title='退出登录'>-->
<!---->
<!--            <input style="width: 100px;height: 32px;margin-left: 5px;background: #46b8da ;border-color:black;color: black" class="btn" type=submit name="session_Prev" value="退出登录"/>-->
<!--        </a>-->
        <a href='<?php echo site_url('c_front/')?>' style="text-decoration:none" alt='退出登录' title='退出登录'>

            <input style="width: 100px;height: 30px;margin-left: 5px" class="btn" type=submit name="session_Prev" value="退出登录"/>
        </a>

<!--        <ri><button  data-toggle="modal" data-target="#myModal">-->
<!--                退出登录-->
<!--            </button></ri>-->



    </div>
</div>
<?php //echo $idmax ?>

<div id="main-tabs" class="container navigation" style="text-align:center;" align="center">
    <h4 style="text-align:left;">细菌质谱分类鉴定列表</h4>
    <br/>
    <form action="<?php echo site_url('c_data/toghterAdmin/')?>" method="post">
    <!-- 菜单体 -->
                <!-- 内容 -->
                        <ul id="myTab" class="nav nav-tabs" style="text-align:center;" align="center">
                            <li class="active" >
                                <a href="#home" data-toggle="tab">
                                    基本信息
                                </a>
                            </li>
                            <li>
                                <input style="width: 100px;height: 35px;color: blue" class="btn" type=submit name="submit1" value="批量下载"/>

                            </li>
                            <li><a href='<?php echo site_url('c_data/vimage/'.$idmax)?>' style="text-decoration:none;color: blue" alt='导入' title='导入质谱'>
                                    导入质谱
                                </a>
                            </li>

                        </ul>
                        <div id="myTabContent" class="tab-content" style="text-align:center;" align="center">
                            <div class="tab-pane fade in active" id="home">
                                <table cellpadding="3" cellspacing="0" id="listTable" class="table table-striped"  align="center">
                                    <thead>
                                    <tr class="x-grid3-header" style="text-align:center">
                                        <th>
                                            <div class="x-grid3-hd-inner " style="text-align:center">序号</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner " style="text-align:center">菌株名称</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner " style="text-align:center">拉丁学名</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner " style="text-align:center">菌株编号</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner" style="text-align:center">详情</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner" style="text-align:center">操作</div></th >
                                        

                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    foreach ($image as $key=>$value)
                                    {
                                        ?>
                                        <tr class="x-grid3-row " style="text-align:center">
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><input type="checkbox" name="mycheckbox[]" value="<?php echo $image[$key]['image_id'] ?>"> <?php echo 15*($page-1)+$key+1; ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $image[$key]['image_name'] ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $image[$key]['image_Latin_name'] ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $image[$key]['image_data'] ?></div></td>
                                            <td ><div class="x-grid3-cell-inner "style="text-align:center">
                                                    <a href='<?php echo site_url('c_front_bacteria/queryById/'.$image[$key]['image_id'])?>' style="text-decoration:none" alt='详情' title='详情'>

                                                        详情
                                                    </a>
                                                </div></td>
                                            <td ><div class="x-grid3-cell-inner "style="text-align:center">
                                                    <a href='<?php echo site_url('c_front_bacteria/queryByIdImageUpdata/'.$image[$key]['image_id'])?>' style="text-decoration:none" alt='修改' title='修改'>

                                                        修改
                                                    </a>
                                                    <a href='<?php echo site_url('c_front_bacteria/queryByIdImageDelete/'.$image[$key]['image_id'])?>' style="text-decoration:none" alt='删除' title='删除'>

                                                        删除
                                                    </a></td>

                                        </tr>
                                        <?php
                                    }
                                    ?>
                                    </tbody></table>
                                <form/>
                            </div>

                        </div>

                    <!-- 分页显示 -->
<!--                    --><?php // echo $i;  ?>
                    <?php
                    $data['total_pages'] = $total_pages;
                    $data['page_first'] = $page_first;
                    $data['page_prev'] = $page_prev;
                    $data['total_pages'] = $total_pages;
                    $data['page'] = $page;
                    $data['page_next'] = $page_next;
                    $data['page_last'] = $page_last;
                    $data['show_start'] = $show_start;
                    $data['show_end'] = $show_end;
                    $data['total_rows'] = $total_rows;
                    $this->load->view('pagination_low', $data);
                    ?>

    <div class="row" style="background-color: #0A9CD8;font-size: 25px">
        <div align="center" style=" text-align: center"><h6 align="center" style="text-align: center;color: #0A9CD8;"></h6></div>
    </div>
                    <!-- /分页显示 -->
</div><!-- /内容 -->
    <!-- /菜单体 -->
</body>
</html>


